package com.int_tech.user.dao;

import com.int_tech.user.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Administrator on 2018/12/10.
 */
public interface UserDao extends JpaRepository<User,Long>, PagingAndSortingRepository<User, Long>, JpaSpecificationExecutor<User> {

    User findByNameAndPassword (String name , String password);


    User findById (int id);
}
